var goodsType_url = "/goodstype/";
var goodsTypeData = [];

lvan.m.productManage = function() {
	goodsType_obj = extend(module,{
		id:'productManage',
		html:"<div id=\"productManage\" class=\"mainblock\"><div><input name='productSk'/><a class='so' href='javascript:void(0);'>搜索</a></div></div>"
	});
	goodsType_obj.init();
};
setTimeout(function() {
	req(goodsType_url+"query",{},function(t) {
		goodsTypeData = t.data;
	});
},500);
var goodsTypetHTML = function(name,id,className) {
	var html = "<select id='"+id+"' class='"+className+"' name='"+name+"'>";
	for(var i=0; i<goodsTypeData.length; i++) {
		html+="<option value='"+goodsTypeData[i].value+"'>"+goodsTypeData[i].name+"</option>";
	}
	html+="</select>";
	return html;
};